package com.ruoyi.biz .domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 新闻管理对象 biz_news
 * 
 * @author 榛子
 * @date 2023-06-27
 */
public class BizNews extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 新闻编号 */
    @Excel(name = "新闻编号")
    private Integer newId;

    /** 新闻标题 */
    @Excel(name = "新闻标题")
    private String title;

    /** 新闻内容 */
    @Excel(name = "新闻内容")
    private String contents;

    /** 新闻日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "新闻日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date publichDate;

    public void setNewId(Integer newId) 
    {
        this.newId = newId;
    }

    public Integer getNewId() 
    {
        return newId;
    }
    public void setTitle(String title) 
    {
        this.title = title;
    }

    public String getTitle() 
    {
        return title;
    }
    public void setContents(String contents) 
    {
        this.contents = contents;
    }

    public String getContents() 
    {
        return contents;
    }
    public void setPublichDate(Date publichDate) 
    {
        this.publichDate = publichDate;
    }

    public Date getPublichDate() 
    {
        return publichDate;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("newId", getNewId())
            .append("title", getTitle())
            .append("contents", getContents())
            .append("publichDate", getPublichDate())
            .toString();
    }
}
